package config

import (
	"github.com/zeromicro/go-zero/rest"
)

type Config struct {
	rest.RestConf
	Auth struct {// JWT 认证需要的密钥和过期时间配置
        AccessSecret string
        AccessExpire int64
    }
	Mysql struct {
		User string
	}
	Redis struct{
		Default *RedisConfig
		Order *RedisConfig
	}
	Elastic *ElasticConfig
}

type RedisConfig struct{
	Addr 			string
    Pass 			string
    Db   			int
}

type ElasticConfig struct{
	Addr  				string
	Sniff 				bool
	HealthcheckInterval int
	MaxRetries          int
}